<?php
if( $_GET['all']!=0){
    echo "22";
    exit;
}
include "sql.php";
$time=time();
$cha=$con->query("update userorder set zhuangtai='2',otime='{$time}' where zhuangtai='1'");
if($cha){
    echo "成功";
}else{
    echo "失败";
}